package com.mapper;

import com.pojo.Buy_db;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface BuyMapper_db {
    @Select("select * from buy_db where u_id = #{uId} and k_id = #{kId}")
    Buy_db findById(@Param("uId") Integer uId,@Param("kId") Integer kId);

    @Insert("insert into buy_db(u_id,k_id) values (#{uId},#{kId})")
    Integer add(Buy_db buyDb);
}
